package cn.tedu._06springaop.egaop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试类
 */
public class TestCartService {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu._06springaop");
        CartServiceImpl bean = context.getBean("cartServiceImpl", CartServiceImpl.class);
        bean.addCart("屠龙刀");
    }
}
